home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260utilsdoc.lha / gnu / man / man1 / dd.1 < prev    next >
Encoding:
Text File  |  1994-07-26  |  3.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DD(1L)            Misc. Reference Manual Pages             DD(1L)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      dd - convert a file while copying it
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      dddddddd [--help] [- - version]  [if=file]  [of=file]  [ibs=bytes]
  13.      [obs=bytes]     [bs=bytes]     [cbs=bytes]     [skip=blocks]
  14.      [seek=blocks]                                 [count=blocks]
  15.      [conv={ascii,ebcdic,ibm,block,unblock,lcase,ucase,swab,noerror,notrunc,
  16.      sync}]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      This manual page documents the GNU version of dddddddd.  dddddddd copies
  20.      a  file  (from the standard input to the standard output, by
  21.      default) with a user-selectable blocksize, while  optionally
  22.      performing conversions on it.
  23.  
  24.   OOOOPPPPTTTTIIIIOOOONNNNSSSS
  25.      Numbers can be followed by a multiplier:
  26.      b=512, c=1, k=1024, w=2, xm=number m
  27.  
  28.      --_h_e_l_p
  29.           Print a usage message on standard output and exit  suc-
  30.           cessfully.
  31.  
  32.      --_v_e_r_s_i_o_n
  33.           Print version information on standard output then  exit
  34.           successfully.
  35.  
  36.      _i_f=_f_i_l_e
  37.           Read from _f_i_l_e instead of the standard input.
  38.  
  39.      _o_f=_f_i_l_e
  40.           Write to _f_i_l_e instead of the standard  output.   Unless
  41.           _c_o_n_v=_n_o_t_r_u_n_c is given, truncate _f_i_l_e to the size speci-
  42.           fied by _s_e_e_k= (0 bytes if _s_e_e_k= is not given).
  43.  
  44.      _i_b_s=_b_y_t_e_s
  45.           Read _b_y_t_e_s bytes at a time.
  46.  
  47.      _o_b_s=_b_y_t_e_s
  48.           Write _b_y_t_e_s bytes at a time.
  49.  
  50.      _b_s=_b_y_t_e_s
  51.           Read and write _b_y_t_e_s bytes at atime.  Override ibs  and
  52.           obs.
  53.  
  54.      _c_b_s=_b_y_t_e_s
  55.           Convert _b_y_t_e_s bytes at a time.
  56.  
  57.      _s_k_i_p=_b_l_o_c_k_s
  58.           Skip _b_l_o_c_k_s ibs-sized blocks at start of input.
  59.  
  60.  
  61.  
  62.  
  63. FSF              Last change: GNU File Utilities                1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DD(1L)            Misc. Reference Manual Pages             DD(1L)
  71.  
  72.  
  73.  
  74.      _s_e_e_k=_b_l_o_c_k_s
  75.           Skip _b_l_o_c_k_s obs-sized blocks at start of output.
  76.  
  77.      _c_o_u_n_t=_b_l_o_c_k_s
  78.           Copy only _b_l_o_c_k_s ibs-sized input blocks.
  79.  
  80.      _c_o_n_v=_c_o_n_v_e_r_s_i_o_n[,_c_o_n_v_e_r_s_i_o_n...]
  81.           Convert the file as specified by the  _c_o_n_v_e_r_s_i_o_n  argu-
  82.           ments.
  83.           Conversions:
  84.  
  85.           ascii
  86.                Convert EBCDIC to ASCII.
  87.  
  88.           ebcdic
  89.                Convert ASCII to EBCDIC.
  90.  
  91.           ibm  Convert ASCII to alternate EBCDIC.
  92.  
  93.           block
  94.                Pad newline-terminated records  to  size  of  cbs,
  95.                replacing newline with trailing spaces.
  96.  
  97.           unblock
  98.                Replace trailing spaces in  cbs-sized  block  with
  99.                newline.
  100.  
  101.           lcase
  102.                Change uppercase characters to lowercase.
  103.  
  104.           ucase
  105.                Change lowercase characters to uppercase.
  106.  
  107.           swab Swap every pair of input bytes.  Unlike  the  Unix
  108.                dd,  this  works  when  an odd number of bytes are
  109.                read.  If the input file contains an odd number of
  110.                bytes, the last byte is simply copied (since there
  111.                is nothing to swap it with).
  112.  
  113.           noerror
  114.                Continue after read errors.
  115.  
  116.           notrunc
  117.                Do not truncate the output file.
  118.  
  119.           sync Pad every input block to size of ibs with trailing
  120.                NULs.
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. FSF              Last change: GNU File Utilities                2
  130.  
  131.  
  132.  
  133.